home *** CD-ROM | disk | FTP | other *** search
/ Aminet 16 / Aminet 16 (1996)(GTI - Schatztruhe)[!][Dec 1996].iso / Aminet / util / time / Mayland.lha / MaylandV1.0 / Install < prev    next >
Text File  |  1996-10-06  |  6KB  |  191 lines

  1.  
  2. ( Message "\nYou are about to install:\n\n"
  3.           "Mayland version 1.0\n\n"
  4.           "The ultimative Calender & Reminder!\n\n\n\n"
  5.           "© 1996 Allan Odgaard\n\n<Duff@DK-Online.DK>" )
  6.  
  7. ( If (< (/ (GetVersion) 65536) 39)
  8.   ( Abort "\n\nYOU DO NOT HAVE KICKSTART 39+\n\n\nWhich is required by this program." )
  9. )
  10.  
  11. ( If (= (PatMatch "(68000|68010)" (DataBase "CPU")) 1)
  12.   ( Abort "\n\nYOU DO NOT HAVE A 68020 OR BETTER!\n\n\nWhich is required by this program." )
  13. )
  14.  
  15. ( If (Not (Exists "Libs:MUIMaster.library"))
  16.   ( Abort "\n\nYOU DO NOT HAVE\n\nMagicUserInterface V3.1+\n\nINSTALLED!" )
  17. )
  18.  
  19. ( Set #MUIVersion (/ (GetVersion "Libs:MUIMaster.library") 65536))
  20.   ( If (= #MUIVersion 0)
  21.     ( Set #MUIVersion (/ (GetVersion "Sys:Prefs/MUI") 65536))
  22.     ( If (= #MUIVersion 0)
  23.       ( Set #MUIVersion (/ (GetVersion "MUI:MUI") 65536)
  24.     )
  25.   )
  26. )
  27.  
  28. ( If (= #MUIVersion 0)
  29.   ( Message "\n\nWARNING!\n\nUnable to determine the installed version of MUI\n"
  30.             "\nOnly continue if you have version 3.1 or never!" )
  31.  
  32.   (If (< #MUIVersion 14)
  33.      ( Abort "\n\nThe installed version of MUI is to old to work with Mayland!\n\n"
  34.              "Please install version 3.1 or higher!" )
  35.   )
  36. )
  37.  
  38. ( Welcome )
  39.  
  40. ( Complete 0 )
  41.  
  42. ( Set #Locales ( AskOptions ( Prompt "Which catalog files do you wish to install?")
  43.                             ( Help  @askoptions-help )
  44.                             ( Choices "p Bosanski"
  45.                                        " Dansk"
  46.                                        " Deutsch"
  47.                                        " Français"
  48.                                        " Svenska" )
  49.                             ( Default 0 )
  50.                )
  51. )
  52.  
  53. ( Set #Holidays ( AskChoice ( Prompt "Which holiday file do you wish to install?")
  54.                             ( Help  @askchoice-help )
  55.                             ( Choices "p Dansk"
  56.                                        " Deutsch"
  57.                                        " Français"
  58.                                        " U.S. (official)"
  59.                                        " U.S. (unofficial)"
  60.                                        " U.S. (merged)"
  61.                                        " None" )
  62.                             ( Default 6 )
  63.                 )
  64. )
  65.  
  66. ( Set #GuidePath ("Help:%s" @language))
  67.  
  68. ( If (Not (AskBool (Prompt "\n\n\n\nIs it ok to install the guide as:\n\n" (TackOn #GuidePath "Mayland.Guide"))
  69.                    (Help "Select Yes if you want the guide installed where it is suggested.\nChoose No to select another path." )
  70.           )
  71.      )
  72.  
  73.   ( Set #GuidePath ( AskDir ( Prompt "Where would you like to have Mayland.guide installed?" )
  74.                             ( Help   "\nThis should be where you normally keep your AmigaGuides!" )
  75.                             ( Default #GuidePath )
  76.                    )
  77.   )
  78. )
  79.  
  80. ( Set #Source      (PathOnly @icon))
  81. ( Set #PrefsFile   (TackOn #Source "Prefs/MaylandPrefs"))
  82. ( Set #DemonFile   (TackOn #Source "WBStartup/Mayland"))
  83. ( Set #DOSLibFile  (TackOn #Source "Libs/DOSPath.library"))
  84. ( Set #WBLibFile   (TackOn #Source "Libs/WBStart.library"))
  85. ( Set #AmigaGuide  (TackOn #Source "Help/Mayland.Guide"))
  86. ( Set #HolidayFile (TackOn #Source ("Holidays/Holidays.%s" (Select #Holidays "DK" "De" "Fr" "oUS" "uUS" "US" ""))))
  87. ( Set #DemonDest   "Sys:WBStartUp/")
  88.  
  89. ( If (Not (AskBool (Prompt "\n\n\n\nWould you like to have the demon installed in\n" #DemonDest)
  90.                    (Help "Select Yes if you want the guide installed where it is suggested.\nChoose No to select another path." )
  91.           )
  92.      )
  93.  
  94.   ( Set #DemonDest ( AskDir ( Prompt "Where would you like to have MaylandDemon installed?" )
  95.                             ( Help   "\nThis would normally be in your WBStartup drawer, but if you use a startupmanager type of program, then you might want it elsewhere." )
  96.                             ( Default #DemonDest )
  97.                    )
  98.   )
  99. )
  100.  
  101. ( CopyLib
  102.   ( Prompt "Copying WBStarter.Library V2.2 to Libs:" )
  103.   ( Confirm )
  104.   ( Source #WBLibFile )
  105.   ( Dest "Libs:" )
  106.   ( Help @copylib-help )
  107. )
  108.  
  109. ( CopyLib
  110.   ( Prompt "Copying DOSPath.Library V1.0 to Libs:" )
  111.   ( Confirm )
  112.   ( Source #DOSLibFile )
  113.   ( Dest "Libs:" )
  114.   ( Help @copylib-help )
  115. )
  116.  
  117. ( Complete 20 )
  118.  
  119. ( CopyFiles
  120.   ( Prompt "Copying MaylandDemon to" #DemonDest )
  121.   ( Source  #DemonFile )
  122.   ( Dest #DemonDest )
  123.   ( Help @copyfiles-help )
  124.   ( Infos )
  125.   ( NoPosition )
  126. )
  127.  
  128. ( Complete 40 )
  129.  
  130. ( CopyFiles
  131.   ( Prompt "Copying MaylandPrefs to Sys:Prefs/" )
  132.   ( Source  #PrefsFile )
  133.   ( Dest "Sys:Prefs" )
  134.   ( Help @copyfiles-help )
  135.   ( Infos )
  136.   ( NoPosition )
  137. )
  138.  
  139. ( Complete 60 )
  140.  
  141. ( If (<> #Holidays 6)
  142.   (( CopyFiles
  143.      ( Prompt "Copying Holiday file to EnvArc:Mayland/" )
  144.      ( Source  #HolidayFile )
  145.      ( Dest "EnvArc:Mayland" )
  146.      ( Newname "Holidays" )
  147.      ( Help @copyfiles-help )
  148.    )
  149.  
  150.    ( CopyFiles
  151.      ( Prompt "Copying Holiday file to Env:Mayland/" )
  152.      ( Source  #HolidayFile )
  153.      ( Dest "Env:Mayland" )
  154.      ( Newname "Holidays" )
  155.      ( Help @copyfiles-help )
  156.    )
  157.   )
  158. )
  159.  
  160. ( Complete 80 )
  161.  
  162. ( Set #Count 0)
  163. ( Until (= #Count 5)
  164.   ( If (In #Locales #Count)
  165.     (( Set #CatalogFile (TackOn (TackOn #Source "Catalogs") (Select #Count "Bosanski" "Dansk" "Deutsch" "Français" "Svenska")))
  166.      ( Set #CatDest (TackOn "Locale:Catalogs" (Select #Count "Bosanski" "Dansk" "Deutsch" "Français" "Svenska")))
  167.      ( CopyFiles
  168.        ( Prompt "Copying locale files to Locale:Catalogs/" )
  169.        ( Source  #CatalogFile )
  170.        ( Dest    #CatDest )
  171.        ( Help @copyfiles-help )
  172.        ( All )
  173.      )
  174.     )
  175.   )
  176.   ( Set #Count (+ #Count 1))
  177. )
  178.  
  179. ( Complete 90 )
  180.  
  181.    ( CopyFiles
  182.      ( Prompt "Copying Mayland.guide to" #GuidePath )
  183.      ( Source  #AmigaGuide )
  184.      ( Dest #GuidePath )
  185.      ( Help @copyfiles-help )
  186.    )
  187.  
  188. ( Complete 100 )
  189.  
  190. ( Set @default-dest "Sys:Prefs/" )
  191.